package com.hjsmallfly.syllabus.room.record;

import android.os.Parcel;
import android.os.Parcelable;

public class UserToken implements Parcelable {

    private String account;
    private String password;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public UserToken(String account, String password) {
        this.account = account;
        this.password = password;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.account);
        dest.writeString(this.password);
    }

    public UserToken() {
    }

    protected UserToken(Parcel in) {
        this.account = in.readString();
        this.password = in.readString();
    }

    public static final Parcelable.Creator<UserToken> CREATOR = new Parcelable.Creator<UserToken>() {
        @Override
        public UserToken createFromParcel(Parcel source) {
            return new UserToken(source);
        }

        @Override
        public UserToken[] newArray(int size) {
            return new UserToken[size];
        }
    };
}
